package com.autumn.sms;

import java.util.Date;
import java.util.Map;

import com.autumn.mq.event.EventDataConfigure;
import com.autumn.mq.event.IEventData;

/**
 * 短信事件数据
 * 
 * @author 老码农
 *
 *         2018-01-11 12:07:19
 */
@EventDataConfigure(name = SmsEventData.EVENT_NAME)
public class SmsEventData implements IEventData {

	/**
	 * 事件名称
	 */
	public final static String EVENT_NAME = "autumn.sms.event.send";

	/**
	 * 
	 */
	private static final long serialVersionUID = -1217537005894678865L;

	private String messageId;
	private String mobilePhone;
	private String serviceId;
	private Date eventTime;
	/**
	 * 服务Ip
	 */
	private String serviceIp;
	/**
	 * 客户端Ip
	 */
	private String clientIp;
	private String serviceKey;
	private String templateCode;
	private Map<String, String> params;
	private boolean isVerificationCode;
	private Integer verificationCodeType;

	public Date getEventTime() {
		return eventTime;
	}

	public void setEventTime(Date eventTime) {
		this.eventTime = eventTime;
	}
	
	/**
	 * 获取消息id
	 * 
	 * @return
	 *
	 */
	public String getMessageId() {
		return messageId;
	}

	/**
	 * 设置消息id
	 * 
	 * @param messageId
	 *            消息id
	 *
	 */
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	/**
	 * 获取手机号码
	 * 
	 * @return
	 *
	 */
	public String getMobilePhone() {
		return mobilePhone;
	}

	/**
	 * 设置手机号码
	 * 
	 * @param mobilePhone
	 *            手机号码
	 *
	 */
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	/**
	 * 获取服务id
	 * 
	 * @return
	 *
	 */
	public String getServiceId() {
		return serviceId;
	}

	/**
	 * 设置服务id
	 * 
	 * @param serviceId
	 *            服务id
	 *
	 */
	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}

	/**
	 * 获取服务key
	 * 
	 * @return
	 *
	 */
	public String getServiceKey() {
		return serviceKey;
	}

	/**
	 * 设置服务key
	 * 
	 * @param serviceKey
	 *            服务key
	 *
	 */
	public void setServiceKey(String serviceKey) {
		this.serviceKey = serviceKey;
	}

	/**
	 * 服务ip
	 * 
	 * @return
	 *
	 */
	public String getServiceIp() {
		return serviceIp;
	}

	/**
	 * 
	 * @param serviceIp
	 *
	 */
	public void setServiceIp(String serviceIp) {
		this.serviceIp = serviceIp;
	}

	/**
	 * 
	 * @return
	 *
	 */
	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	/**
	 * 获取模板代码
	 * 
	 * @return
	 *
	 */
	public String getTemplateCode() {
		return templateCode;
	}

	/**
	 * 设置模板代码
	 * 
	 * @param templateCode
	 *            模板代码
	 *
	 */
	public void setTemplateCode(String templateCode) {
		this.templateCode = templateCode;
	}

	public boolean getIsVerificationCode() {
		return isVerificationCode;
	}

	public void setIsVerificationCode(boolean isVerificationCode) {
		this.isVerificationCode = isVerificationCode;
	}

	/**
	 * 验证码
	 * 
	 * @return
	 *
	 */
	public Integer getVerificationCodeType() {
		return verificationCodeType;
	}

	public void setVerificationCodeType(Integer verificationCodeType) {
		this.verificationCodeType = verificationCodeType;
	}

	/**
	 * 获取参数集合
	 * 
	 * @return
	 *
	 */
	public Map<String, String> getParams() {
		return params;
	}

	/**
	 * 设置参数集合
	 * 
	 * @param params
	 *
	 */
	public void setParams(Map<String, String> params) {
		this.params = params;
	}
}
